﻿using myapp.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace myapp.Databases.DAO
{
    /// <summary>
    /// Function Dao
    /// </summary>
    public class FunctionDao
    {
        /// <summary>
        /// Get List Function of Group
        /// </summary>
        /// <param name="funGroup"></param>
        /// <returns></returns>
        public static List<Function> FunctionListOfGroup(FunctionGroup funGroup)
        {
            List<Function> lst = new List<Function>();

            for (int i = 1; i < 7; i++)
            {
                Function fun = new Function()
                {
                    Id = i,
                    Name = "Chức năng " + i,
                    FunctionGroup = funGroup
                };
                lst.Add(fun);
            }
            return lst;
        }
    }
}
